/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.company.primitivies;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author admin
 */
public class Circle {
    private double r;
    private double x;
    private double y;

    public Circle(double r, double x, double y) {
        this.r = r;
        this.x = x;
        this.y = y;
    }
      public double genX(double t) {
        return x+r * Math.cos(t);
    }

    public double genY(double t) {
        return y+r * Math.sin(t);
    }
     public List<Point2d> generateListPoint(double h) {
        List<Point2d> result = new ArrayList<>();
        double t = 0;
        while (t <= 2 * Math.PI) {
            result.add(new Point2d(genX(t), genY(t)));
            t = t + h;
        }
        return result;
    }
    
    
}
